<?php get_header(); ?>
<div id="content">
<div id="contentleft">
<div style="margin-bottom: 18px;" class="postarea">
</div>
<div class="postarea">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="postauthor">
<p>本文由<?php the_author_link(); ?>发表于<?php the_time('Y年m月d日'); ?> <a href="<?php the_permalink(); ?>#comments"><?php comments_number('暂无评论', '评论1条', '评论%条'); ?> </a><?php if(function_exists('the_views')) { the_views(); } ?>&nbsp; <?php edit_post_link('编辑', '', ''); ?></p>
</div>
<div class="entry">
    <?php
        if (is_single() or is_page()) {
            the_content();
        } else {
            the_excerpt();
        } 
    ?>
<div style="clear:both;"></div>
</div>
<div class="postmeta">
<p>分类:<?php the_category(', ') ?> 标签:<?php the_tags('') ?></p>
</div>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
<p><?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?></p>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<?php get_footer(); ?>